package com.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.bean.Area;
import com.demo.vo.AreaVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AreaMapper extends BaseMapper<Area> {
	/**
	 * 查询所有area
	 * @return
	 */
	List<AreaVO> selectAreaVoList();

	//获取省的信息
	 List<Area> getProvince();

	//获取市区信息
	 List<Area> getCity(Integer pid);

	//获取所有县区信息
	 List<Area> getArea(Integer pid);
}
